<template>
  <div @click="goWrite">
    <button class="ask-question"><Icon type="md-create" />写回答</button>
  </div>
</template>
<script>
export default {
  name: "WriteButton",
  methods: {
    goWrite() {
      this.$store.commit('changeWriteAnswer',true)
      window.scrollTo(0,128)
    }
  }
};
</script>

<style scoped lang="scss">
.ask-question {
  height: 3.2rem;
  width: 9.6rem;
  background-color: #fff;
  border: 0.1rem solid #0084ff;
  border-radius: 0.3rem;
  color: #0084ff;
  &:hover {
    background-color: rgba(0, 132, 255, 0.06);
  }
}
</style>